﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using 视图.Models;

namespace 视图.ViewComponents
{
    public class Blogs3ViewComponent : ViewComponent
    {
        public IViewComponentResult Invoke()
        {
            var blogs = new List<Blog>()
            {
                new Blog(){ Id=1,Name="李四" },
                new Blog(){ Id=2,Name="张三" }
            };


            return View("blogs3", blogs);
        }
    }
}
